Get Message
AutomatR.MicrosoftTeams.Activities.GetMessage
The "Get Message" activity in AutomatR for Microsoft Teams retrieves a specific message using the Message ID within Teams. This activity facilitates the management and access of chat messages in Teams, providing essential functionality for automation workflows.
Properties
Name | Description |
---|---|
Input | |
Channel ID | Specifies the Channel ID for the message when retrieving a channel message. String variables containing the Channel ID. |
Team ID | Specifies the Team ID for the message when retrieving a channel message. String variables containing the Team ID. |
Chat ID | Specifies the Chat ID for the message when retrieving a chat message. String variables containing the Chat ID. |
Message ID | Specifies the Message ID for the message to be retrieved. String variables containing the Message ID. |
Misc | |
Display Name | The display name of the activity. A display name is automatically generated when you indicate a target. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Get Message" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs a Microsoft.Graph.ChatMessage object representing the retrieved chat message in Teams. This object includes information about the message, such as sender details, content, and timestamp. |
How to use:
- Drag and drop the "Get Message" activity onto the workflow.
- Configure the properties by specifying the Channel ID, Team ID, Chat ID, and Message ID for the message you want to retrieve.
- Optionally, configure the delay.
- Execute the workflow to retrieve the specified message within Microsoft Teams.
Example: Consider an example where the "Get Message" activity is used to retrieve a message with the Message ID "message123" from a Teams channel with the Channel ID "channel456" and Team ID "team789":
Get Message:
Channel ID: "channel456"
Team ID: "team789"
Message ID: "message123"
Result: teamMessage
In this example, the activity retrieves the message with the specified Message ID from the Teams channel within the specified team. The resulting teamMessage
object contains information about the retrieved message for further processing within the workflow.